
<extend name="_layout/main" />
<block name="content">


<div id="mws-container" class="clearfix">
    <div class="container">

<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span class="mws-i-24 i-list" style="float: left;display: inline">商品列表</span>

        <span style="float: right;display: inline;"><a style="color: orange;text-decoration: none" href="{:U('add')}">添加商品</a></span>

        <div style="clear: both"></div>

    </div>
    <div class="mws-panel-body">
        <table class="mws-table">
            <thead>
            <tr>
                <th>序号</th>
                <th>图片</th>
                <th>商品名称</th>
                <th>商品分类</th>
                <th>商品品牌</th>
                <th>状态</th>
                <th>排序</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <volist name="datas" id="data">
            <tr class="gradeX even">
                <td>{$data.id}</td>
                <td><img src="{$data.image}" width="40"></td>
                <td>{$data.gname}</td>
                <td>{$data.cat_info.cname}</td>
                <td>{$data.b_info.bname}</td>
                <td><eq name="data.status" value="1">开启<else/>关闭</eq></td>

                <td class="center">{$data.sort}</td>
                <td class="center"><a href="{:U('Admin/Goods/edit?id='.$data['id'])}">编辑</a>&nbsp;&nbsp;&nbsp;<a href="{:U('Admin/Goods/del?id='.$data['id'])}">删除</a></td>
            </tr>
            </volist>


            </tbody>
        </table>

        <div style="text-align: center;width: 30%;margin: 0 auto">{$page}</div>

    </div>
</div>

        </div></div>
    </block>